package com.sxhalo.fsms.service;

import com.sxhalo.fsms.domain.MotorRunningData;
import com.sxhalo.fsms.domain.MotorRunningDataKey;
import com.sxhalo.fsms.domain.RedisData;
import com.sxhalo.fsms.mapper.MotorRunningDataMapper;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MotorRunningDataService {

	@Autowired
	private MotorRunningDataMapper mapper;


	
	public Integer insertSelective(MotorRunningData record) {
		return mapper.insertSelective(record);
	}


	public Integer updateByPrimaryKeySelective(MotorRunningData record) {
		return mapper.updateByPrimaryKeySelective(record);
	}


	public Integer deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public MotorRunningData selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey((MotorRunningDataKey)key);
	}

	public Integer batchSave(List<RedisData> data) {
		return mapper.batchSave(data);
	}
	



}
